package com.example.learningspringboot.main;

import com.example.learningspringboot.config.AppConfig;
import com.example.learningspringboot.service.AspectService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AspectTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        AspectService bean = context.getBean(AspectService.class);
        bean.getUser();
        bean.addUser();
        context.close();
    }
}
